package cc.md888.app.model.feedback;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
public class CreateFeedbackCmd {

    @ApiModelProperty("联系方式")
    @NotEmpty(message = "联系方式不能为空")
    @Length(max = 100, message = "联系方式超过128个字符")
    private String contact;

    @ApiModelProperty("反馈内容")
    @NotEmpty(message = "反馈内容不能为空")
    @Length(max = 1024, message = "联系方式超过1024个字符")
    private String content;

}
